﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.MultiEditingInPathEditor.SetLocationsProperties.CCUiSLPSetLocationsPropertiesDlg
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using C1.Win.C1FlexGrid;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Olp.RoboticParameters;
using Tecnomatix.Engineering.PrivateImplementationDetails;
using Tecnomatix.Engineering.Ui;
using Tecnomatix.Engineering.Ui48;


namespace DnProcessSimulateCommands.MultiEditingInPathEditor.SetLocationsProperties;

public class CCUiSLPSetLocationsPropertiesDlg : TxForm
{
  private const string _REG_EXPANDED_DIALOG_WIDTH = "Expanded dialog width";
  private const string _REG_EXPANDED_DIALOG_HEIGHT = "Expanded dialog height";
  private const string _REG_COLLAPSED_DIALOG_WIDTH = "Collapsed dialog width";
  private const string _REG_COLLAPSED_DOALOG_HEIGHT = "Collapsed dialog height";
  private readonly Size _MIN_EXPANDED_SIZE = new Size(539, 500);
  private readonly Size _MIN_COLLAPSED_SIZE = new Size(269, 500);
  private CApSLPSetLocationsPropertiesFilterUtils _filtersUtils;
  private CApSLPSetLocationsPropertiesLocationsListUtils _locationsUtils;
  private CApSLPSetLocationsPropertiesCommonPropertiesUtils _commonPropertiesUtils;
  private CApSLPSetLocationsPropertiesSourceLocationUtils _sourceLocationUtils;
  private CApSLPSetLocationsPropertiesSourceLocationCommomPropertiesUtils _sourceLocationProperties;
  private CApSLPRobotParamToMfgAttributeMapping _robotParamToMfgAttributeMappingmanager;
  private TxOlpRoboticParametersManager _roboticManager;
  private IContainer components;
  private Label lblActiveFilters;
  private TxToolBarButton tbbLocationFilter;
  private ToolBarButton tbbSeparator1;
  private TxToolBarButton tbbMotionTypeFilter;
  private CUiSLPFlexGridWrapper txFGLocationsList;
  private Label lblCommonProperties;
  private Button btnClose;
  private Button btnReset;
  private Button btnCopy;
  private TxObjEditBoxCtrl txebSourceLocation;
  private CUiSLPFlexGridWrapper txFGSourceLocationPropertiesList;
  private Label lblObtainPropertiesFromLocation;
  private Label lblSourceLocationProperties;
  private ImageList ilIcons;
  private ToolTip ttTooltip;
  private Panel pRightPanel;
  private Panel pLeftPanel;
  private TxToolBarButton tbbProcessTypeFilter;
  private CUiSLPFlexGridWrapper txFGCommonPropertiesList;
  private TxToolBarButton tbbRelinkAll;
  private ToolBarButton tbbSeparator3;
  private TxToolBarButton tbbObtainFromLocation;
  private Panel panelObtainLocation;
  private TableLayoutPanel tableLayoutPanel1;
  private TxToolBar pFilterToolbar;

  public CCUiSLPSetLocationsPropertiesDlg()
  {
    this.InitializeComponent();
    this.InitToolbarIcons();
  }

  private void CCUiSLPSetLocationsPropertiesDlg_Load(object sender, EventArgs e)
  {
    Cursor current = Cursor.Current;
    Cursor.Current = Cursors.WaitCursor;
    this.LoadDialogSizesFromRegistry();
    ITxRobotController commonController = (ITxRobotController) null;
    CApSLPSetLocationsPropertiesLogic.GetCommonController(out commonController);
    if (commonController == null)
    {
      int num = (int) TxMessageBox.Show(StringTable.ResourceManager.GetString("SLP_DifferentControllerError_Message"), StringTable.ResourceManager.GetString("SLP_DifferentControllerError_Title"), MessageBoxButtons.OK, MessageBoxIcon.Hand);
      ((Form) this).Close();
    }
    else
    {
      this._locationsUtils = new CApSLPSetLocationsPropertiesLocationsListUtils((TxFlexGrid) this.txFGLocationsList, new RefreshCommonSourcePropertiesListDueToEvent(this.RefreshCommonPropertiesListDueToEventByLocation));
      this._locationsUtils.InitializeList();
      this._roboticManager = CApSLPSetLocationsPropertiesLogic.GetRoboticManager(this._locationsUtils.PreSelectedLocations);
      this._robotParamToMfgAttributeMappingmanager = new CApSLPRobotParamToMfgAttributeMapping()
      {
        RoboticOperations = this._locationsUtils.PreSelectedLocations
      };
      this._commonPropertiesUtils = new CApSLPSetLocationsPropertiesCommonPropertiesUtils((TxFlexGrid) this.txFGCommonPropertiesList, this._locationsUtils.PreSelectedLocations, this._roboticManager, new PauseLocationsEventsNotifications(this.PauseLocationsEvents), new ResumeLocationsEventsNotifications(this.ResumeLocationEvents));
      this._commonPropertiesUtils.InitializeList();
      this._filtersUtils = new CApSLPSetLocationsPropertiesFilterUtils(new CApSLPSetLocationsPropertiesFilterUtilsCreationData((ToolBarButton) this.tbbLocationFilter, (ToolBarButton) this.tbbMotionTypeFilter, (ToolBarButton) this.tbbProcessTypeFilter, this._locationsUtils.PreSelectedLocations, new FilterLocationsList(this.FilterLocations), new UpdateFilterCaption(this.UpdateFiltersCaption)));
      this.EnableRelinkAllcommonPropertiesButton();
      this._sourceLocationUtils = new CApSLPSetLocationsPropertiesSourceLocationUtils(this.txebSourceLocation, commonController, new DnProcessSimulateCommands.MultiEditingInPathEditor.SetLocationsProperties.ValidSourceLocationSelected(this.ValidSourceLocationSelected), new DnProcessSimulateCommands.MultiEditingInPathEditor.SetLocationsProperties.InvalidSourceLocationSelected(this.InvalidSourceLocationSelected), new RefreshCommonPropertiesListDueToEvent(this.RefreshCommonPropertiesListDueToEventBySourceLocation));
      this._sourceLocationProperties = new CApSLPSetLocationsPropertiesSourceLocationCommomPropertiesUtils((TxFlexGrid) this.txFGSourceLocationPropertiesList, this._roboticManager, new HasField(this._commonPropertiesUtils.HasField), new EnableCopyButton(this.BtnCopy_Enable), new IsFieldReadOnly(this._commonPropertiesUtils.IsFieldReadOnly), new IsFieldBlockedForCopy(this._commonPropertiesUtils.IsFieldBlockedForCopy));
      this._sourceLocationProperties.InitializeList();
      this.SetRightDialogSideVisibility();
      Cursor.Current = current;
    }
  }

  private void CbDialogModeChanged()
  {
    this.SetDialogSize();
    this.SetRightDialogSideVisibility();
    this.txebSourceLocation.Focus();
    if (!((ToolBarButton) this.tbbObtainFromLocation).Pushed)
      return;
    this.txebSourceLocation.Focus();
  }

  protected virtual void OnFormClosing(FormClosingEventArgs args)
  {
    if (this._sourceLocationProperties != null)
      this._sourceLocationProperties.UnRegisterEvents();
    if (this._commonPropertiesUtils != null)
    {
      this._commonPropertiesUtils.CloseChildForms();
      this._commonPropertiesUtils.UnRegisterEvents();
    }
    if (this._sourceLocationUtils != null)
      this._sourceLocationUtils.UnRegisterEvents();
    if (this._locationsUtils != null)
      this._locationsUtils.UnRegisterFromLocationsEvents();
    if (((ToolBarButton) this.tbbObtainFromLocation).Pushed)
    {
      ((ToolBarButton) this.tbbObtainFromLocation).Pushed = false;
      this.CbDialogModeChanged();
    }
    this.SaveDialogSizesToRegistry();
    // ISSUE: explicit non-virtual call
    __nonvirtual (((Form) this).OnFormClosing(args));
  }

  private void PFilterToolbar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
  {
    if (e.Button == this.tbbRelinkAll)
    {
      if (TxMessageBox.ShowModal(StringTable.ResourceManager.GetString("RelinkAll_Message"), StringTable.ResourceManager.GetString("RelinkAll_Caption"), MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
        return;
      this.RelinkAllcommonProperties();
    }
    else
    {
      if (e.Button != this.tbbObtainFromLocation)
        return;
      this.CbDialogModeChanged();
    }
  }

  private void EnableRelinkAllcommonPropertiesButton()
  {
    List<string> roboticParams = new List<string>();
    foreach (KeyValuePair<string, string> filteredPropertiesName in this._commonPropertiesUtils.GetFilteredPropertiesNames())
      roboticParams.Add(this._roboticManager.GetPropertyHardcodedId(filteredPropertiesName.Key));
    ((ToolBarButton) this.tbbRelinkAll).Enabled = this._robotParamToMfgAttributeMappingmanager.CanConnectSomeParameterForSomeOperation((IEnumerable<string>) roboticParams);
  }

  private void RelinkAllcommonProperties()
  {
    List<string> roboticParams = new List<string>();
    foreach (KeyValuePair<string, string> filteredPropertiesName in this._commonPropertiesUtils.GetFilteredPropertiesNames())
    {
      string propertyHardcodedId = this._roboticManager.GetPropertyHardcodedId(filteredPropertiesName.Key);
      if (this._robotParamToMfgAttributeMappingmanager.CanConnectParameterForSomeOperation(propertyHardcodedId))
      {
        roboticParams.Add(propertyHardcodedId);
        this._commonPropertiesUtils.SaveOldValue(filteredPropertiesName.Key);
      }
    }
    Cursor current = Cursor.Current;
    Cursor.Current = Cursors.WaitCursor;
    this.PauseLocationsEvents();
    this._robotParamToMfgAttributeMappingmanager.ConnectParameters((IEnumerable<string>) roboticParams);
    this.ResumeLocationEvents();
    this.RefreshCommonPropertiesListDueToEventByLocation();
    Cursor.Current = current;
  }

  private void RefreshCommonPropertiesListDueToEventByLocation()
  {
    if (this._filtersUtils == null || this._locationsUtils == null || this._commonPropertiesUtils == null)
      return;
    if (this._commonPropertiesUtils.IsInOperationRoboticParametersUpdateMode)
    {
      this._commonPropertiesUtils.HasChangesDuringRoboticParametersUpdateMode = true;
      this._commonPropertiesUtils.OperationRoboticParametersUpdateMode_CommonRefreshCallback = new RefreshCommonPropertiesListDueToEvent(this.RefreshCommonPropertiesListDueToEventByLocation);
    }
    else
    {
      TxObjectList filteredList = this._filtersUtils.GenerateFilteredList();
      this._locationsUtils.FillLocationsWithContent(filteredList);
      this._commonPropertiesUtils.FillCommonPropertiesWithContent(filteredList);
      this._robotParamToMfgAttributeMappingmanager.RoboticOperations = filteredList;
      this.EnableRelinkAllcommonPropertiesButton();
    }
  }

  private void RefreshCommonPropertiesListDueToEventBySourceLocation()
  {
    if (this._sourceLocationUtils == null || this._sourceLocationProperties == null)
      return;
    if (this._commonPropertiesUtils.IsInOperationRoboticParametersUpdateMode)
    {
      this._commonPropertiesUtils.HasChangesDuringRoboticParametersUpdateMode = true;
      this._commonPropertiesUtils.OperationRoboticParametersUpdateMode_SourceRefreshCallback = new RefreshCommonPropertiesListDueToEvent(this.RefreshCommonPropertiesListDueToEventBySourceLocation);
    }
    else
      this._sourceLocationProperties.FillCommonPropertiesWithContent(this.txebSourceLocation.Object as ITxRoboticLocationOperation);
  }

  private void PauseLocationsEvents() => this._locationsUtils.UnRegisterFromLocationsEvents();

  private void ResumeLocationEvents() => this._locationsUtils.RegisterToLocationsEvents();

  private void FilterLocations(TxObjectList newLocations)
  {
    Cursor current = Cursor.Current;
    Cursor.Current = Cursors.WaitCursor;
    if (this._locationsUtils != null)
      this._locationsUtils.FillLocationsWithContent(newLocations);
    if (this._commonPropertiesUtils != null)
      this._commonPropertiesUtils.FillCommonPropertiesWithContent(newLocations);
    this._robotParamToMfgAttributeMappingmanager.RoboticOperations = newLocations;
    this.EnableRelinkAllcommonPropertiesButton();
    Cursor.Current = current;
  }

  private void UpdateFiltersCaption(string newCaption) => this.lblActiveFilters.Text = newCaption;

  private void InitToolbarIcons()
  {
    this.tbbLocationFilter.SetImage(TxImageManager.GetImageByKey("FilterLocation"));
    this.tbbMotionTypeFilter.SetImage(TxImageManager.GetImageByKey("FilterMotion"));
    this.tbbProcessTypeFilter.SetImage(TxImageManager.GetImageByKey("FilterProcess"));
    this.tbbRelinkAll.SetImage(TxImageManager.GetImageByKey("Relink"));
    this.tbbObtainFromLocation.SetImage(TxImageManager.GetImageByKey("ObtainFromLocation"));
    ((ToolBarButton) this.tbbLocationFilter).ImageIndex = 0;
    ((ToolBarButton) this.tbbMotionTypeFilter).ImageIndex = 1;
    ((ToolBarButton) this.tbbProcessTypeFilter).ImageIndex = 2;
    ((ToolBarButton) this.tbbRelinkAll).ImageIndex = 3;
    ((ToolBarButton) this.tbbObtainFromLocation).ImageIndex = 4;
    this.pFilterToolbar.InitImages();
  }

  private void SetDialogSize()
  {
    if (((ToolBarButton) this.tbbObtainFromLocation).Pushed)
    {
      ((Control) this).Width = 2 * ((Control) this).Width;
      ((Control) this).MinimumSize = this._MIN_EXPANDED_SIZE;
    }
    else
    {
      ((Control) this).Width = ((Control) this).Width / 2;
      ((Control) this).MinimumSize = this._MIN_COLLAPSED_SIZE;
    }
  }

  private void SetRightDialogSideVisibility()
  {
    if (((ToolBarButton) this.tbbObtainFromLocation).Pushed)
    {
      this.tableLayoutPanel1.ColumnStyles[1].SizeType = SizeType.AutoSize;
      this.tableLayoutPanel1.ColumnStyles[2].SizeType = SizeType.Percent;
      this.tableLayoutPanel1.ColumnStyles[2].Width = 50f;
    }
    else
    {
      this.tableLayoutPanel1.ColumnStyles[1].SizeType = SizeType.Absolute;
      this.tableLayoutPanel1.ColumnStyles[1].Width = 0.0f;
      this.tableLayoutPanel1.ColumnStyles[2].SizeType = SizeType.Absolute;
      this.tableLayoutPanel1.ColumnStyles[2].Width = 0.0f;
    }
  }

  private void FillLists()
  {
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).Cols[0].Name = "Property 2";
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).Cols[0].Caption = "Property 2";
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).Cols[1].Name = "Value 2";
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).Cols[1].Caption = "Value 2";
  }

  private void ValidSourceLocationSelected()
  {
    this._sourceLocationProperties.FillCommonPropertiesWithContent(this.txebSourceLocation.Object as ITxRoboticLocationOperation);
  }

  private void InvalidSourceLocationSelected() => this._sourceLocationProperties.ClearList();

  private void BtnReset_Click(object sender, EventArgs e)
  {
    Cursor current = Cursor.Current;
    Cursor.Current = Cursors.WaitCursor;
    if (this._filtersUtils != null)
      this._filtersUtils.Reset();
    if (this._commonPropertiesUtils != null && this._locationsUtils != null)
    {
      this._commonPropertiesUtils.Reset(this._locationsUtils.PreSelectedLocations);
      this._commonPropertiesUtils.CloseChildForms();
    }
    Cursor.Current = current;
  }

  private void BtnClose_Click(object sender, EventArgs e) => ((Form) this).Close();

  private void BtnCopy_Click(object sender, EventArgs e)
  {
    Cursor current = Cursor.Current;
    Cursor.Current = Cursors.WaitCursor;
    if (this._commonPropertiesUtils == null || this._sourceLocationProperties == null || this._filtersUtils == null || !(this.txebSourceLocation.Object is ITxRoboticLocationOperation))
      throw new NullReferenceException();
    this._commonPropertiesUtils.Copy(this.txebSourceLocation.Object as ITxRoboticLocationOperation, this._sourceLocationProperties.GetAllSelectedProperties());
    this._filtersUtils.ExecuteFilters();
    Cursor.Current = current;
  }

  private void BtnCopy_Enable(bool enableButton) => this.btnCopy.Enabled = enableButton;

  private void SaveDialogSizesToRegistry() => TxFormSettings.StoreFormSize((Form) this);

  private void LoadDialogSizesFromRegistry()
  {
    TxFormSettings.RestoreFormSize((Form) this);
    ((Control) this).MinimumSize = this._MIN_COLLAPSED_SIZE;
  }

  protected virtual void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent()
  {
    this.components = (IContainer) new Container();
    ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (CCUiSLPSetLocationsPropertiesDlg));
    this.txFGLocationsList = new CUiSLPFlexGridWrapper();
    this.panelObtainLocation = new Panel();
    this.txebSourceLocation = new TxObjEditBoxCtrl();
    this.lblObtainPropertiesFromLocation = new Label();
    this.pRightPanel = new Panel();
    this.txFGSourceLocationPropertiesList = new CUiSLPFlexGridWrapper();
    this.lblSourceLocationProperties = new Label();
    this.btnCopy = new Button();
    this.pLeftPanel = new Panel();
    this.txFGCommonPropertiesList = new CUiSLPFlexGridWrapper();
    this.lblCommonProperties = new Label();
    this.lblActiveFilters = new Label();
    this.pFilterToolbar = new TxToolBar();
    this.tbbLocationFilter = new TxToolBarButton();
    this.tbbMotionTypeFilter = new TxToolBarButton();
    this.tbbProcessTypeFilter = new TxToolBarButton();
    this.tbbSeparator3 = new ToolBarButton();
    this.tbbRelinkAll = new TxToolBarButton();
    this.tbbObtainFromLocation = new TxToolBarButton();
    this.ilIcons = new ImageList(this.components);
    this.btnClose = new Button();
    this.btnReset = new Button();
    this.ttTooltip = new ToolTip(this.components);
    this.tableLayoutPanel1 = new TableLayoutPanel();
    ((ISupportInitialize) this.txFGLocationsList).BeginInit();
    this.panelObtainLocation.SuspendLayout();
    this.pRightPanel.SuspendLayout();
    ((ISupportInitialize) this.txFGSourceLocationPropertiesList).BeginInit();
    this.pLeftPanel.SuspendLayout();
    ((ISupportInitialize) this.txFGCommonPropertiesList).BeginInit();
    this.tableLayoutPanel1.SuspendLayout();
    ((Control) this).SuspendLayout();
    ((C1FlexGridBase) this.txFGLocationsList).AllowDragging = (AllowDraggingEnum) 0;
    ((C1FlexGridBase) this.txFGLocationsList).AllowEditing = false;
    ((C1FlexGridBase) this.txFGLocationsList).AllowResizing = (AllowResizingEnum) 0;
    ((C1FlexGridBase) this.txFGLocationsList).AllowSorting = (AllowSortingEnum) 0;
    componentResourceManager.ApplyResources((object) this.txFGLocationsList, "txFGLocationsList");
    ((C1FlexGridBase) this.txFGLocationsList).EmptyAsNull = false;
    ((C1FlexGridBase) this.txFGLocationsList).ExtendLastCol = true;
    ((Control) this.txFGLocationsList).Name = "txFGLocationsList";
    ((RowColCollection) ((C1FlexGridBase) this.txFGLocationsList).Rows).Count = 1;
    ((RowColCollection) ((C1FlexGridBase) this.txFGLocationsList).Rows).DefaultSize = 19;
    ((C1FlexGridBase) this.txFGLocationsList).ShowSortPosition = (ShowSortPositionEnum) 0;
    ((C1FlexGridBase) this.txFGLocationsList).StyleInfo = componentResourceManager.GetString("txFGLocationsList.StyleInfo");
    componentResourceManager.ApplyResources((object) this.panelObtainLocation, "panelObtainLocation");
    this.panelObtainLocation.Controls.Add((Control) this.txebSourceLocation);
    this.panelObtainLocation.Controls.Add((Control) this.lblObtainPropertiesFromLocation);
    this.panelObtainLocation.Name = "panelObtainLocation";
    componentResourceManager.ApplyResources((object) this.txebSourceLocation, "txebSourceLocation");
    this.txebSourceLocation.KeepFaceEmphasizedWhenControlIsNotFocused = true;
    this.txebSourceLocation.ListenToPick = false;
    ((Control) this.txebSourceLocation).Name = "txebSourceLocation";
    this.txebSourceLocation.Object = (ITxObject) null;
    this.txebSourceLocation.PickAndClear = false;
    this.txebSourceLocation.PickLevel = (TxPickLevel) 1;
    this.txebSourceLocation.PickOnly = false;
    this.txebSourceLocation.ReadOnly = false;
    this.txebSourceLocation.ValidatorType = (TxValidatorType) 1;
    componentResourceManager.ApplyResources((object) this.lblObtainPropertiesFromLocation, "lblObtainPropertiesFromLocation");
    this.lblObtainPropertiesFromLocation.Name = "lblObtainPropertiesFromLocation";
    this.pRightPanel.BackColor = SystemColors.Control;
    this.pRightPanel.Controls.Add((Control) this.txFGSourceLocationPropertiesList);
    this.pRightPanel.Controls.Add((Control) this.lblSourceLocationProperties);
    componentResourceManager.ApplyResources((object) this.pRightPanel, "pRightPanel");
    this.pRightPanel.Name = "pRightPanel";
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).AllowDragging = (AllowDraggingEnum) 0;
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).AllowSorting = (AllowSortingEnum) 0;
    componentResourceManager.ApplyResources((object) this.txFGSourceLocationPropertiesList, "txFGSourceLocationPropertiesList");
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).EmptyAsNull = false;
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).ExtendLastCol = true;
    ((Control) this.txFGSourceLocationPropertiesList).Name = "txFGSourceLocationPropertiesList";
    ((RowColCollection) ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).Rows).Count = 1;
    ((RowColCollection) ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).Rows).DefaultSize = 19;
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).SelectionMode = (SelectionModeEnum) 7;
    ((C1FlexGridBase) this.txFGSourceLocationPropertiesList).StyleInfo = componentResourceManager.GetString("txFGSourceLocationPropertiesList.StyleInfo");
    componentResourceManager.ApplyResources((object) this.lblSourceLocationProperties, "lblSourceLocationProperties");
    this.lblSourceLocationProperties.Name = "lblSourceLocationProperties";
    componentResourceManager.ApplyResources((object) this.btnCopy, "btnCopy");
    this.btnCopy.BackColor = SystemColors.Control;
    this.btnCopy.Name = "btnCopy";
    this.btnCopy.UseVisualStyleBackColor = false;
    this.btnCopy.Click += new EventHandler(this.BtnCopy_Click);
    this.pLeftPanel.BackColor = SystemColors.Control;
    this.pLeftPanel.Controls.Add((Control) this.txFGCommonPropertiesList);
    this.pLeftPanel.Controls.Add((Control) this.lblCommonProperties);
    componentResourceManager.ApplyResources((object) this.pLeftPanel, "pLeftPanel");
    this.pLeftPanel.Name = "pLeftPanel";
    componentResourceManager.ApplyResources((object) this.txFGCommonPropertiesList, "txFGCommonPropertiesList");
    ((C1FlexGridBase) this.txFGCommonPropertiesList).EmptyAsNull = false;
    ((C1FlexGridBase) this.txFGCommonPropertiesList).ExtendLastCol = true;
    ((Control) this.txFGCommonPropertiesList).Name = "txFGCommonPropertiesList";
    ((RowColCollection) ((C1FlexGridBase) this.txFGCommonPropertiesList).Rows).Count = 1;
    ((RowColCollection) ((C1FlexGridBase) this.txFGCommonPropertiesList).Rows).DefaultSize = 19;
    ((C1FlexGridBase) this.txFGCommonPropertiesList).StyleInfo = componentResourceManager.GetString("txFGCommonPropertiesList.StyleInfo");
    componentResourceManager.ApplyResources((object) this.lblCommonProperties, "lblCommonProperties");
    this.lblCommonProperties.Name = "lblCommonProperties";
    componentResourceManager.ApplyResources((object) this.lblActiveFilters, "lblActiveFilters");
    this.lblActiveFilters.Name = "lblActiveFilters";
    componentResourceManager.ApplyResources((object) this.pFilterToolbar, "pFilterToolbar");
    ((ToolBar) this.pFilterToolbar).Buttons.AddRange(new ToolBarButton[6]
    {
      (ToolBarButton) this.tbbLocationFilter,
      (ToolBarButton) this.tbbMotionTypeFilter,
      (ToolBarButton) this.tbbProcessTypeFilter,
      this.tbbSeparator3,
      (ToolBarButton) this.tbbRelinkAll,
      (ToolBarButton) this.tbbObtainFromLocation
    });
    ((ToolBar) this.pFilterToolbar).Divider = false;
    ((ToolBar) this.pFilterToolbar).ImageList = this.ilIcons;
    ((Control) this.pFilterToolbar).Name = "pFilterToolbar";
    ((ToolBar) this.pFilterToolbar).ButtonClick += new ToolBarButtonClickEventHandler(this.PFilterToolbar_ButtonClick);
    componentResourceManager.ApplyResources((object) this.tbbLocationFilter, "tbbLocationFilter");
    ((ToolBarButton) this.tbbLocationFilter).Name = "tbbLocationFilter";
    ((ToolBarButton) this.tbbLocationFilter).Style = ToolBarButtonStyle.DropDownButton;
    componentResourceManager.ApplyResources((object) this.tbbMotionTypeFilter, "tbbMotionTypeFilter");
    ((ToolBarButton) this.tbbMotionTypeFilter).Name = "tbbMotionTypeFilter";
    ((ToolBarButton) this.tbbMotionTypeFilter).Style = ToolBarButtonStyle.DropDownButton;
    componentResourceManager.ApplyResources((object) this.tbbProcessTypeFilter, "tbbProcessTypeFilter");
    ((ToolBarButton) this.tbbProcessTypeFilter).Name = "tbbProcessTypeFilter";
    ((ToolBarButton) this.tbbProcessTypeFilter).Style = ToolBarButtonStyle.DropDownButton;
    this.tbbSeparator3.Name = "tbbSeparator3";
    this.tbbSeparator3.Style = ToolBarButtonStyle.Separator;
    componentResourceManager.ApplyResources((object) this.tbbRelinkAll, "tbbRelinkAll");
    ((ToolBarButton) this.tbbRelinkAll).Name = "tbbRelinkAll";
    componentResourceManager.ApplyResources((object) this.tbbObtainFromLocation, "tbbObtainFromLocation");
    ((ToolBarButton) this.tbbObtainFromLocation).Name = "tbbObtainFromLocation";
    ((ToolBarButton) this.tbbObtainFromLocation).Style = ToolBarButtonStyle.ToggleButton;
    this.ilIcons.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("ilIcons.ImageStream");
    this.ilIcons.TransparentColor = Color.Transparent;
    this.ilIcons.Images.SetKeyName(0, "LocationTypeFilter.ico");
    this.ilIcons.Images.SetKeyName(1, "MotionTypeFilter.ico");
    this.ilIcons.Images.SetKeyName(2, "ObtainFromLocation.ico");
    this.ilIcons.Images.SetKeyName(3, "SetLocationsParameters.ico");
    this.ilIcons.Images.SetKeyName(4, "ProcessTypeFilter.ico");
    this.ilIcons.Images.SetKeyName(5, "Relink.ico");
    componentResourceManager.ApplyResources((object) this.btnClose, "btnClose");
    this.btnClose.DialogResult = DialogResult.Cancel;
    this.btnClose.Name = "btnClose";
    this.btnClose.UseVisualStyleBackColor = true;
    this.btnClose.Click += new EventHandler(this.BtnClose_Click);
    componentResourceManager.ApplyResources((object) this.btnReset, "btnReset");
    this.btnReset.Name = "btnReset";
    this.btnReset.UseVisualStyleBackColor = true;
    this.btnReset.Click += new EventHandler(this.BtnReset_Click);
    componentResourceManager.ApplyResources((object) this.tableLayoutPanel1, "tableLayoutPanel1");
    this.tableLayoutPanel1.Controls.Add((Control) this.panelObtainLocation, 2, 0);
    this.tableLayoutPanel1.Controls.Add((Control) this.txFGLocationsList, 0, 0);
    this.tableLayoutPanel1.Controls.Add((Control) this.pRightPanel, 2, 1);
    this.tableLayoutPanel1.Controls.Add((Control) this.btnCopy, 1, 1);
    this.tableLayoutPanel1.Controls.Add((Control) this.pLeftPanel, 0, 1);
    this.tableLayoutPanel1.Name = "tableLayoutPanel1";
    componentResourceManager.ApplyResources((object) this, "$this");
    ((ContainerControl) this).AutoScaleMode = AutoScaleMode.Font;
    ((Control) this).Controls.Add((Control) this.lblActiveFilters);
    ((Control) this).Controls.Add((Control) this.tableLayoutPanel1);
    ((Control) this).Controls.Add((Control) this.pFilterToolbar);
    ((Control) this).Controls.Add((Control) this.btnReset);
    ((Control) this).Controls.Add((Control) this.btnClose);
    ((Form) this).MaximizeBox = false;
    ((Form) this).MinimizeBox = false;
    ((Control) this).Name = nameof (CCUiSLPSetLocationsPropertiesDlg);
    ((Form) this).Load += new EventHandler(this.CCUiSLPSetLocationsPropertiesDlg_Load);
    ((ISupportInitialize) this.txFGLocationsList).EndInit();
    this.panelObtainLocation.ResumeLayout(false);
    this.panelObtainLocation.PerformLayout();
    this.pRightPanel.ResumeLayout(false);
    this.pRightPanel.PerformLayout();
    ((ISupportInitialize) this.txFGSourceLocationPropertiesList).EndInit();
    this.pLeftPanel.ResumeLayout(false);
    this.pLeftPanel.PerformLayout();
    ((ISupportInitialize) this.txFGCommonPropertiesList).EndInit();
    this.tableLayoutPanel1.ResumeLayout(false);
    this.tableLayoutPanel1.PerformLayout();
    ((Control) this).ResumeLayout(false);
    ((Control) this).PerformLayout();
  }
}
